<?php

class Form_Auth_Login extends Zend_Form {
	
	public function init()
	{
		
		$screenName = $this->createElement('text', 'login', array('label' => 'Login', 'required' => true));
		$screenName->addValidator(new Zend_Validate_EmailAddress());
		
		$password = $this->createElement('password', 'password', array('label' => 'Hasło', 'required' => true));
		$password->addValidator(new Zend_Validate_StringLength(6, 120));

		$this->addElements(array($screenName, $password));
		
		$this->addElement('submit', 'Zaloguj mnie');  
	}
	
}